<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"><link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
     <link rel="stylesheet" href="__STATIC__/layout/css/channel.css" type="text/css">
     <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/sc/js/page.js"></script>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade clearfix">
      <h2 class="clearfix text-center"><a class="col-md-6 title_color H_right" id="Ap1" style="display: inline-block;font-size: 16px;color:#333;" href="{:url('apCost_pay')}">未支付面单</a> <a class="col-md-6 title_color H_active"  id="Ap2" style="font-size: 16px;display: inline-block;" href="{:url('apCost_pay2')}">已支付面单</a></h2>
    </div>
    <!-- 标题 -->
    <div>
       <form action="#" method="post" id="form_check" class="form-inline formpage">
               <input type="hidden" value='{$page}' name="page" id="page-go"/>
              <input type="hidden" value='{$list}' name="list" id="list-go"/>
     <table class="row-margin-top tab-content table-bordered table" border="1">
          <tr>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">编号：</label></td>
            <td><input type="text" class="form-control" name="no" value="{$data.no}"></td>
      <td style="min-width: 120px;width: 120px"><label for="" class="form-label">标题：</label></td>
            <td><input type="text" class="form-control" name="title" value="{$data.title}"></td>
      <td style="min-width: 120px;width: 120px"><label for="" class="form-label">申请人：</label></td>
            <td><input type="text" class="form-control" name="cname" value="{$data.cname}"></td>
    </tr>
       <tr>
          <td style="min-width: 120px;width: 120px"><label for="" class="form-label">申请时间：</label></td>
            <td colspan="5">
             <div class="form-group">
            <input type="text" id="start" class="form-control layer-date " style="min-width:100px;display: inline-block;" name="start" value="{$data.start}">
           </div>
            <div class="form-group">
                至
            </div>
           <div class="form-group">
            <input type="text" class="form-control layer-date" style="min-width:100px;display: inline-block;" id="end" name="end" value="{$data.end}">
           </div>
            </td>
          </tr>
          <tr>
       <td colspan="6" class="text-center">
           <button class="btn btn-info query" type="button" id="check">查询</button>
           <button class="btn btn-info emptyIf" type="button" id="clear_check">清空查询条件</button>
            </td>
          </tr>
      </table>
      <table class="table table-striped row-margin-top table-bordered text-center bud_hei">
         <tr>
      <th colspan="9" class="font-bold">
        已上账面单总笔数：<span id="overUpNum">{$sum}</span> &nbsp; &nbsp;
        已上账总金额：<span class="ObjectNum" id="overUpMoney">{$sumjine}</span>元
      </th>
         </tr>
          <tr class="info text-center">
            <th class="text-center">NO.</th>
            <th class="text-center">申请人</th>
            <th class="text-center">编号</th>
            <th class="text-center">主题</th>
            <th class="text-center">核销金额</th>
            <th class="text-center">本次支付金额</th>
            <th class="text-center">支付时间</th>
            <th class="text-center">费用凭证</th>
            <th class="text-center">操作</th>
          </tr>
          {volist name="applys" id="vo"}
            <tr>
              <td>{$i}</td>
              <td>{$vo.cname}</td>
              <td><a onclick="hede({$vo.ahpid},{$vo.apid})">{$vo.no}</a></td>
              <td class="text-left">核销申请：{$vo.title}</td>
              <td class="text-right ObjectNum num2">{$vo.hexiao}</td>
               <td class="text-right ObjectNum num2">{$vo.zfjin}</td>
              <td>{$vo.zhifu_day}</td>
               <td>{$vo.zfpz}</td>
                <td><a onclick="hede({$vo.id},{$vo.apid})">查看</a></td>
            </tr>
          {/volist}
        
      </table>
       <h5 class="text-center" id="pagesc" style="font-size: 16px;font-weight: 500">
            <script>
                            $(function(){
                                pageSC("pagesc",{$sum},{$page},{$maxpage})
                            })
                        </script> 
                        每页显示
           <select id="pagesize">
                        <option value='10' {if condition="$list eq 10"}selected{/if}>10条</option>
                        <option value='15'{if condition="$list eq 15"}selected{/if}>15条</option>
                        <option value='20'{if condition="$list eq 20"}selected{/if}>20条</option>

            </select>
        </h5>
</form>
    </div>
     <!-- 全局js -->
  <!-- 全局js -->
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>

<script src="__STATIC__/layout/js/plugins/suggest/bootstrap-suggest.min.js"></script>
    <script src="__STATIC__/layout/js/common.js"></script>
    <script>
      function hede(hid,aid){
    
      var index = layer.open({
                            type:2,
                            title:'常规促销申请',
                            area:['100%','100%'],
                            maxmin:true,
                            content:"{:url('Apapply/apCostVerifyDetail')}?hid="+hid+"&aid="+aid
                        })
    }
        //日期范围限制
        var start = {
            elem: '#start',
            format: 'YYYY/MM/DD',
            min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };
        var end = {
            elem: '#end',
            format: 'YYYY/MM/DD',
            min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
        laydate(start);
        laydate(end);
        $(document).ready(function(){
              $(".num2").each(function(){
        $(this).html(parseFloat($(this).html()).toFixed(2));
     })
          var $ObjectNum =$(".ObjectNum");
             toNum($ObjectNum);
        })
              //翻页
       
        $("#check").click(function(){
              $("#page-go").val(1);
              $(".formpage").submit();
        })
        $("#clear_check").click(function(){
            $("input[type='text']").val("");
            $("#page-go").val(1);
            $(".formpage").submit();
        })
    </script>
</body>

</html>
